﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;
using DAO;

namespace BUS
{
    public class TaiKhoanBUS
    {
        public static TaiKhoanDTO TimTaiKhoan(string maTK)
        {
            return TaiKhoanDAO.TimTaiKhoan(maTK);
        }


        public static List<TaiKhoanDTO> TimDSTaiKhoan(List<KhachHangDTO> lstKH)
        {
            return TaiKhoanDAO.TimDSTaiKhoan(lstKH);
        }

        public static int DongTaiKhoan(TaiKhoanDTO tkDto, string recentUser)
        {
            return TaiKhoanDAO.DongTaiKhoan(tkDto,recentUser);
        }

        public static int PhongToaTaiKhoan(TaiKhoanDTO tkDto, PhongToaTKDTO ptDto, string recentUser)
        {
            return TaiKhoanDAO.PhongToaTaiKhoan(tkDto, ptDto, recentUser);
        }
    }
}
